#include "Mutex.h"

Mutex::Mutex()
{
	m_mtx = SDL_CreateMutex();
}

Mutex::~Mutex()
{
	SDL_DestroyMutex(m_mtx);
}

void Mutex::Lock()
{
	SDL_LockMutex(m_mtx);
}

void Mutex::Unlock()
{
	SDL_UnlockMutex(m_mtx);
}